package com.mobileshop.common;

import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Random;

public class Utils {
	private final static Random random=new Random();
	private final static DecimalFormat format=new DecimalFormat("##0.00");
	public final static SimpleDateFormat DATE_FORMAT=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	public static String random(){
		int ran=random.nextInt(899999);
		ran+=100000;
		return ran+"";
	}
	public static String getfloatString(float n){
		return format.format(n);
	} 
	
	public static boolean sendMessage(String phoneno,String verifycode) {
		
		return true;
	}
	public static String  getCurrentTime(){
		return DATE_FORMAT.format(new Date());
	}
}
